<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

<div id="example" 
	class="static"
	v-bind:class="{ active: isActive, 'text-danger': hasError }">
	ddddddddddddd
</div>
<script>
var vm = new Vue({
  el: '#example',
  data: {
    isActive: true,
	hasError: true
  }
})
</script>